package com.sunlands.zlcx.usercenter.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * @author anjl
 * @date 1:02 PM 2019/4/15
 * description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Entity(name = "tz_latest_version")
@DynamicUpdate
@DynamicInsert
public class LatestVersionDO implements Serializable{

    private static final long serialVersionUID = -3842515152578711103L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    /**
     * 姓名
     */
    private String app;
    /**
     * 最新版本
     */
    private String latestVersion;
    /**
     * 最低支持版本
     */
    private String minSupportVersion;
    private String url;
    private String tip;
    private String forceTip;


    public enum AppSysEnum {
        IOS,ANDROID
    }

}
